#! /usr/bin/python
# coding: utf-8
from Tkinter import *
root = Tk()
e = IntVar()
e.set(3)
entry = Entry(root, textvariable = e)
entry.pack()
entry['state'] = 'readonly'
root.mainloop()
